package com.coder4j.platform.mapper;

import com.coder4j.starter.mybatis.BaseMapper;
import com.coder4j.platform.entity.SysChineseColorEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.Arrays;
import java.util.List;

/**
 * 中国色
 * @author keller
 * @date 2025-06-26 22:35:09
 */
@Mapper
public interface SysChineseColorMapper extends BaseMapper<SysChineseColorEntity>{
	/**
     * 默认查询条件
     * @return
     */
    @Override
    default List<String> defaultCondition(){
    return Arrays.asList(
			" <if test = 'colorName!=null'> AND color_name=#{colorName} </if>",
			" <if test = 'typeCode!=null'> AND type_code=#{typeCode} </if>",
            " <if test = 'createId!=null'> AND create_id=#{createId} </if>",
            " <if test = 'updateId!=null'> AND update_id=#{updateId} </if>");
    }
}